home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 22 / Amiga Format AFCD22 (Jan 1998, Issue 106).iso / -screenplay- / utilities / hd_installers / propowerboat / install-propowerboat < prev    next >
Text File  |  1997-11-05  |  2KB  |  86 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3. (set #rip "abaddon")
  4. (set #dismount "dismount")
  5.  
  6.  
  7. ;----------------------------
  8.  
  9. ;try to figure out a place where the user usually installs his games
  10. (if (exists "Games:" (noreq) )
  11.     (set @default-dest "Games:")
  12.     (if (exists "SYS:Games" (noreq) )
  13.         (set @default-dest "SYS:Games")
  14.         (if (exists "Work:Games" (noreq) )
  15.             (set @default-dest "Work:Games")
  16.             (if (exists "JEUX:" (noreq) )
  17.                (set @default-dest "JEUX:")
  18.                (set @default-dest "SYS:")
  19.             )
  20.         )
  21.     )
  22. )
  23.  
  24.  
  25. (set @default-dest
  26. (askdir
  27.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  28.     (help @askdir-help)
  29.     (default @default-dest)
  30.     (disk)
  31. )
  32. )
  33.  
  34. (set #dest (tackon @default-dest @app-name))
  35.  
  36.  
  37. (makedir #dest
  38.     (help @makedir-help)
  39.     (infos)
  40. )
  41.  
  42. ;----------------------------
  43.  
  44.  
  45. (copyfiles
  46.     (help @copyfiles-help)
  47.     (source "PowerBoatHD")
  48.     (dest #dest)
  49. )
  50. (copyfiles
  51.     (help @copyfiles-help)
  52.     (source "PowerBoatHD.info")
  53.     (dest #dest)
  54. )
  55.  
  56. (copyfiles
  57.     (help @copyfiles-help)
  58.     (source "powrbthd.readme.info")
  59.     (dest #dest)
  60. )
  61.  
  62. (copyfiles
  63.     (help @copyfiles-help)
  64.     (source "powrbthd.readme")
  65.     (dest #dest)
  66. )
  67. (message ("\nInsert %s into drive %s!" @app-name #CI_drive))
  68.     (if
  69.         (= 0 (run ("copy df%ld: to \"%s\" all " #CI_unit #dest )))
  70.         ("")
  71.         (abort "\"\" must be in your PATH !")
  72.     )
  73.  
  74. (makeassign    #rip #dest)
  75.  
  76. (message ("\nReady to rip %s level data?\n\nThe screen will go black" @app-name))
  77.  
  78.     (if
  79.         (= 0 (run ("jst PPB-Ripper NOCACHES QUIET")))
  80.         ("")
  81.         (abort "\"jst\" must be in your PATH !")
  82.     )
  83.  
  84. (exit)
  85.  
  86.